// Used to obtain the distance between the scroll bar and the bottom of the page
// pass in a document
export const pagingFun = ($el) => {
  let scrollTop = $el.target.scrollTop; // 滚动条距离顶部
  let offsetHeight = $el.target.offsetHeight; // 获取屏幕高度
  let scrollHeight = $el.target.scrollHeight; // 获取滚动条可滚动的范围

  

  console.log(scrollTop + offsetHeight, scrollHeight);

  return scrollTop + offsetHeight - scrollHeight;
};
